<template>
  <div id="app" @contextmenu="stop">
    <router-view v-show="isRouterAlive"/>
  </div>
</template>

<script>
export default {
  name: "App",
  provide () {    //父组件中通过provide来提供变量，在子组件中通过inject来注入变量。                                             
      return {
          reload: this.reload                                              
      }
  },
  data() {
      return{
          isRouterAlive: true                    //控制视图是否显示的变量
      }
  },
  methods: {
    stop(e) {
      e.preventDefault();
    },
    reload () {
        this.isRouterAlive = false;            //先关闭，
        this.$nextTick(function () {
            this.isRouterAlive = true;         //再打开
        }) 
    } 
  }
};
</script>
<style>
body{
  font-size: 12px !important;
}
.main_chat_text >>> .set_size12 {
  font-size: 12px;
}
.main_chat_text >>> .set_size14 {
  font-size: 14px;
}
.main_chat_text >>> .set_size16 {
  font-size: 16px;
}
.main_chat_text >>> .set_size18 {
  font-size: 18px;
}
.main_chat_text >>> .set_size20 {
  font-size: 20px;
}
.main_chat_text >>> .set_size22 {
  font-size: 22px;
}
</style>
<style lang='less'>
.friend_s_main .ivu-table th {
  border: none;
}
.friend_s_main .ivu-table-wrapper,
.friend_s_main .ivu-table td {
  border: none;
}
body .ivu-page-prev {
  margin-bottom: 5px;
  vertical-align: top !important;
}
body .ivu-page-item {
  margin-bottom: 5px;
}
body .ivu-picker-panel-body {
  background: #fff;
  box-shadow: 0 0 15px #ddd;
}
body .ivu-modal-mask {
  z-index: 2000;
}
body .ivu-modal-wrap {
  z-index: 3000;
}
.session_value img {
  width: 1.5em;
  height: 1.5em;
}
body .ivu-btn-info {
  background-color: #fa7500;
  border-color: #fa7500;
}
.stfz_wrap .ivu-select-dropdown {
  height: 100px !important;
  top: inherit !important;
  bottom: 170px !important;
}
.ivu-btn:hover {
  color: #fff;
  background-color: #fff;
  border-color: #f59331;
}
#personal_chat .ivu-input-icon-normal + .ivu-input {
  border-radius: 15px;
  background: #f5f5f5;
  border: none;
}
.homePerson .ivu-dropdown-item-divided {
  margin-top: 0;
}
.broadList .vue-list ul li {
  cursor: pointer;
}
#contentInput .ql-toolbar {
  display: none;
}
#contentInput .ql-container {
  border: none;
}
#app {
  font-family:'Microsoft YaHei';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
div,
p,
h1,
h2,
h3,
h4,
h5,
span,
a,
ul,
li,
ol,
dl,
dt,
input,
textarea,
button {
  margin: 0;
  padding: 0;
  list-style: none;
}
.determine_btn {
  height: 32px;
  width: 80px;
  color: #fff;
  background: #fa8e00;
  border-radius: 2px;
  line-height: 32px;
  text-align: center;
  border: none;
  outline: 0;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  &:hover {
    background: #fa7500;
  }
}
.default_btn {
  display: inline-block;
  height: 32px;
  width: 80px;
  color: #666;
  font-size: 14px;
  border-radius: 2px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  outline: 0;
  cursor: pointer;
  &:hover {
    background: #eee;
  }
}
textarea::-webkit-scrollbar {
  display: none;
}

input::-webkit-input-placeholder {
  color: #cccccc !important;
}

input::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #cccccc !important;
}

input:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #cccccc !important;
}

input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #cccccc !important;
}

.textOverflow {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.textOverflow_position {
  position: absolute;
  top: 30px;
  left: 130px;
  z-index: 9999;
  width: 180px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
  background: #ffffff;
  border-radius: 3px;
}

.textOverflow_position_content {
  max-height: 400px;
  overflow-y: scroll;
}

.textOverflow_position_content div {
  width: 100%;
  height: 40px;
  border-bottom: 1px solid #eeeeee;
  line-height: 40px;
  padding-left: 20px;
  font-size: 14px;
  color: #333333;
  cursor: pointer;
}

.textOverflow_position_content div:hover {
  color: #fa7500;
}

#login .ivu-tabs-nav {
  width: 100% !important;
}

#login .ivu-tabs-tab {
  width: 50% !important;
}
#login .ivu-tabs-nav .ivu-tabs-tab-active {
  color: #f59331;
}
#login .ivu-tabs-ink-bar {
  background-color: #f59331;
}
.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  .ivu-modal {
    top: 0;
  }
}

.ivu-select-dropdown {
  width: 0;
}

#ModalFirst .ivu-modal-header {
  background-color: #eff3f6 !important;
  border: none !important;
}

#ModalFirst .ivu-modal-footer {
  border: none !important;
}

.homePerson .ivu-dropdown-rel {
  display: flex;
}

#ModalFirst .ivu-modal-footer {
  display: none;
}
#personal_chat .ivu-picker-panel-body {
  background: #fff;
}
.anchorBL {
  display: none !important;
}

.homePerson .ivu-card-body,
.toInfo_parent .ivu-card-body {
  padding: 0;
}

.flex {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.my-fixed {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1600;
}

.parent {
  position: absolute;
  top: 8em;
  margin: auto;
  height: 500px;
  left: 0;
  right: 0;
  background-color: #ffffff;
  width: 680px;
  box-shadow: 0 0 10px #999;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
}
#search_tabs{
  padding-bottom: 20px;
}
#search_tabs .ivu-tabs-nav {
  width: 100% !important;
}

#search_tabs .ivu-tabs-tab {
  width: 20% !important;
  font-size: 12px;
  box-sizing: border-box !important;
  padding: 8px 0;
  text-align: center;
}

#search_tabs .ivu-tabs .ivu-tabs-content-animated {
  flex: 1;
}

.ivu-select-dropdown {
  height: 0 !important;
}

.checkchat {
  margin-left: 20px;
  width: 20px;
  height: 20px;
}
.checkchat:after {
  cursor: pointer;
  flex-shrink: 0;
  content: "";
  display: inline-block;
  text-align: center;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  color: #ffffff;
  margin-right: 1em;
  background: url(../static/image/home/radius.png) no-repeat center center;
}
.checkchatClear:after {
  content: "";
  width: unset;
}
.choosechat:after {
  cursor: pointer;
  flex-shrink: 0;
  content: "\2714";
  display: inline-block;
  text-align: center;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  color: #ffffff;
  margin-right: 1em;
  background: #fa7500 !important;
}
.checkSpan:after {
  content: "\2714";
  display: inline-block;
  text-align: center;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  color: #ffffff;
  margin-right: 1em;
  background-color: #e0e0e0;
}
.chooseSpan:after {
  content: "\2714";
  display: inline-block;
  text-align: center;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  color: #ffffff;
  margin-right: 1em;
  background-color: #fa7500 !important;
}

.ivu-dropdown-item-divided {
  margin-top: 0;
}
.ivu-dropdown-item-divided:before {
  height: 0 !important;
}
#quill_editor .ql-toolbar.ql-snow {
  display: none;
}
#quill_editor .ql-container.ql-snow {
  border: none;
}
#quill_editor {
  flex: 1;
  overflow: auto;
}
#quill_editor p {
  display: inline-block;
}
.el-picker-panel,
.el-date-picker,
.el-popper,
.has-time {
  z-index: 9999;
}
.el-input--small .el-input__inner {
  height: 25px !important;
  line-height: 25px !important;
}
.el-input--mini .el-input__inner {
  padding-left: 10px !important;
}

.menu-main > .el-date-editor,
.el-input,
.el-date-editor,
.el-input__inner {
  width: 100% !important;
}
.collection_wrap /deep/ .el-input__inner{
  border-radius:0;  
}
.menu-main > .el-input__inner {
  border: none !important;
}
.menu-main {
  .el-date-editor,
  .el-input,
  .el-date-editor,
  .el-input__inner {
    width: 100% !important;
    .el-input__inner {
      border: none !important;
    }
  }
}

.communication_wrap_h3 {
  display: inline-block;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
}

.dxTime input {
  border: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

.page_wrap .ivu-page {
  // width: 50% !important;
  float: left !important;
}

//修改网络链接断开的提示x
.ivu-icon-ios-close-empty:before {
  content: "" !important;
}

// iframe样式修改start
.iframeSrc {
  width: 100%;
  height: 100%;
}

// iframe样式修改end
.dxTooltip {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  .ivu-tooltip-rel {
    width: 100%;
    span {
      width: 100%;
      display: inline-block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .ivu-tooltip-popper {
    left: 40% !important;
  }
}

.ivu-tooltip-inner {
  max-width: unset !important;
}

.el-button--primary,
.ivu-page-item-active {
  background-color: #f59331 !important;
  border-color: #f59331 !important;
}

.ivu-page-item-active a{
  color: #1E3B42 !important;
}

.ivu-page-item:hover,
.ivu-page-next:hover,
.ivu-page-prev:hover,
.page_box .page_foot > button:hover {
  border-color: #f59331 !important;
}

.ivu-page-item:hover a,
.el-select-dropdown__item.selected {
  color: #f59331 !important;
}

/* zk1214新增，页码hover时颜色为白色 */
.el-button--primary,
.ivu-page-item-active:hover a {
  color: #ffffff !important;
}

.page_box .page_foot > button {
  padding: 0 10px !important;
}

.page_box .page_foot > button:hover {
  background: #f59331 !important;
  border: 1px solid #f59331 !important;
}

.my_el_select {
  width: 100%;
  // margin-right: 10px;
  .el-input__inner {
    height: 32px !important;
    line-height: 32px !important;
  }
  .el-input__icon{
    line-height: 32px !important;
  }
  .el-input__inner::-webkit-input-placeholder {
    font-size: 14px;
    color: #333;
  }
  .el-input__suffix {
    display: flex;
    align-items: center;
  }
}

.my_el_select_broad {
  width: 120px;
  margin-right: 10px;
}

.my_el_date_picker_l {
  .el-input__inner {
    border-radius: 4px 0 0 4px !important;
    border-right: none !important;
  }
  .el-input__inner:focus,
  .el-input__inner:hover {
    border-color: #DCDFE6 !important;
  }
}

.my_el_date_picker_z {
  font-size: 14px;
  color: #333333;
  height: 32px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #DCDFE6;
  border-bottom: 1px solid #DCDFE6;
}

.my_el_date_picker_r {
  .el-input__inner {
    border-radius: 0 4px 4px 0 !important;
    border-left: none !important;
  }
  .el-icon-date:before {
    content: none !important;
  }
  .el-input__inner:focus,
  .el-input__inner:hover {
    border-color: #DCDFE6 !important;
  }
}

.my_el_select_time {
  flex: 1 !important;
  height: 32px !important;
  padding: 0 2px 0 8px !important;
  // border-radius: 0 4px 4px 0 !important;
  min-width: 160px;
  max-width: 210px;
  .el-range-separator {
    width: 7% !important;
    padding: 0 !important;
  }
  /deep/.el-range-input {
    width: 50% !important;
    line-height: 30px !important;
    font-size: 12px !important;
  }
}

// 加载动画样式
.el-loading-mask {
  background-color: hsla(0, 0%, 100%, 0.6) !important;
}
.el-loading-spinner .path {
  stroke: #f59331 !important;
}
.el-loading-spinner .el-loading-text {
  color: #f59331 !important;
}
.el-upload-list {
  display: block !important;
}

</style>
